//alert(window.navigator.userAgent);
var flag = true;
var browsers = ['WebKit', 'Chrome', 'Edge'];
for (i = 0; i < browsers.length; i++) {
    if (window.navigator.userAgent.indexOf(browsers[i]) !== -1) {
        flag = false;
        break;
    }
}
if (flag) {
    try {
        document.body.innerHTML = '';
    } catch (e) { }
    try {
        document.write('<h3>由于兼容性问题，我们建议使用Chrome、Edge或360浏览器（极速模式）访问本页面。</h3>');
    } catch (e) { }
    try {
        document.execCommand("stop");
    } catch (e) { }
    try {
        window.stop();
    } catch (e) { }
}

try {
    top.location.hostname;
    if (top.location.hostname != window.location.hostname)
        throw new error("禁止嵌入本网页");
} catch (e) {
    top.location.href = window.location.href;
}